/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tax;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author Home
 */
public class DanhSachHoSo extends javax.swing.JFrame {

    /**
     * Creates new form DocListForm
     */
    public DanhSachHoSo() {
        initComponents();
        
        initTable();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        buttonGroup2 = new javax.swing.ButtonGroup();
        jMenu3 = new javax.swing.JMenu();
        jScrollPane1 = new javax.swing.JScrollPane();
        tbl_DanhSachHoSo = new javax.swing.JTable();
        jLabel1 = new javax.swing.JLabel();
        txt_SearchMaSoThue = new javax.swing.JTextField();
        rbt_TatCa = new javax.swing.JRadioButton();
        rbt_DaXuLy = new javax.swing.JRadioButton();
        rbt_ChuaXuLy = new javax.swing.JRadioButton();
        rbt_ChuaAnDinhNgayThucHien = new javax.swing.JRadioButton();
        rbt_ChamTienDo = new javax.swing.JRadioButton();
        cbb_Nam = new javax.swing.JComboBox();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        cbb_Quy = new javax.swing.JComboBox();
        lbl_TatCa = new javax.swing.JLabel();
        lbl_DaXuLy = new javax.swing.JLabel();
        lbl_ChuaXuLy = new javax.swing.JLabel();
        lbl_ChuaAnDinhNgayThucHien = new javax.swing.JLabel();
        lbl_ChamTienDo = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        bt_ThemHoSo_TrucTiep = new javax.swing.JButton();
        bt_ThemHoSo_TuFile = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        bt_NgayLe = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        lbl_Lich_Gio = new javax.swing.JLabel();
        lbl_Lich_Thu = new javax.swing.JLabel();
        lbl_Lich_NgayThangNam = new javax.swing.JLabel();
        jPBaoCao = new javax.swing.JPanel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenu4 = new javax.swing.JMenu();

        jMenu3.setText("jMenu3");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        tbl_DanhSachHoSo.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null}
            },
            new String [] {
                "STT", "MST", "Doanh Nghiệp", "Địa Chỉ", "Cán Bộ Giữ Ngân Sách", "Trưởng Đoàn", "Trình Trạng", "Ngày", "Cảnh báo", "Hoàn Thành"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Boolean.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tbl_DanhSachHoSo);

        jLabel1.setText("Search");

        txt_SearchMaSoThue.setText("Mã Số Thuế");

        rbt_TatCa.setText("Tat ca");

        rbt_DaXuLy.setText("Da xu ly");

        rbt_ChuaXuLy.setText("Chua xu ly");

        rbt_ChuaAnDinhNgayThucHien.setText("Chua an dinh ngay thuc hien");

        rbt_ChamTienDo.setText("Cham tien do");

        cbb_Nam.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cbb_Nam.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbb_NamActionPerformed(evt);
            }
        });

        jLabel8.setText("Nam:");

        jLabel9.setText("Quy:");

        cbb_Quy.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        lbl_TatCa.setText("100");

        lbl_DaXuLy.setText("50");

        lbl_ChuaXuLy.setText("50");

        lbl_ChuaAnDinhNgayThucHien.setText("10");

        lbl_ChamTienDo.setText("20");

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Them HoSo"));

        bt_ThemHoSo_TrucTiep.setText("Truc Tiep");

        bt_ThemHoSo_TuFile.setText("Tu File");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(bt_ThemHoSo_TrucTiep)
                    .addComponent(bt_ThemHoSo_TuFile))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(bt_ThemHoSo_TrucTiep)
                .addGap(26, 26, 26)
                .addComponent(bt_ThemHoSo_TuFile)
                .addGap(0, 28, Short.MAX_VALUE))
        );

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Lich"));

        bt_NgayLe.setText("Ngay Le");

        jLabel7.setIcon(new javax.swing.ImageIcon("E:\\Code\\Source\\Tax\\images.jpg")); // NOI18N

        lbl_Lich_Gio.setText("9:42 AM");

        lbl_Lich_Thu.setText("Monday");

        lbl_Lich_NgayThangNam.setText("26/3/2012");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(bt_NgayLe))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(9, 9, 9)
                        .addComponent(lbl_Lich_Gio))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lbl_Lich_NgayThangNam)
                            .addComponent(lbl_Lich_Thu)))))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(4, 4, 4)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(lbl_Lich_Gio)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lbl_Lich_Thu)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lbl_Lich_NgayThangNam)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(bt_NgayLe)
                        .addContainerGap())
                    .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );

        jPBaoCao.setBorder(javax.swing.BorderFactory.createTitledBorder("Bao Cao"));

        javax.swing.GroupLayout jPBaoCaoLayout = new javax.swing.GroupLayout(jPBaoCao);
        jPBaoCao.setLayout(jPBaoCaoLayout);
        jPBaoCaoLayout.setHorizontalGroup(
            jPBaoCaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPBaoCaoLayout.setVerticalGroup(
            jPBaoCaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        jMenu1.setText("File");

        jMenuItem1.setText("jMenuItem1");
        jMenu1.add(jMenuItem1);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Edit");
        jMenuBar1.add(jMenu2);

        jMenu4.setText("jMenu4");
        jMenuBar1.add(jMenu4);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 935, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txt_SearchMaSoThue, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(57, 57, 57)
                                .addComponent(jLabel8))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(rbt_TatCa)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(lbl_TatCa))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(rbt_ChuaAnDinhNgayThucHien)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(lbl_ChuaAnDinhNgayThucHien))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(rbt_ChamTienDo)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(lbl_ChamTienDo))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(rbt_DaXuLy)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(lbl_DaXuLy))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(rbt_ChuaXuLy)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(lbl_ChuaXuLy)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(cbb_Nam, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabel9)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(cbb_Quy, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(28, 28, 28)
                                .addComponent(jPBaoCao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addGroup(layout.createSequentialGroup()
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(rbt_TatCa)
                                        .addComponent(lbl_TatCa))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(rbt_DaXuLy)
                                        .addComponent(lbl_DaXuLy))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(rbt_ChuaXuLy)
                                        .addComponent(lbl_ChuaXuLy))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(rbt_ChuaAnDinhNgayThucHien)
                                        .addComponent(lbl_ChuaAnDinhNgayThucHien))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(rbt_ChamTienDo)
                                        .addComponent(lbl_ChamTienDo)))
                                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addComponent(jPBaoCao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel9)
                                .addComponent(cbb_Quy, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel1)
                                .addComponent(txt_SearchMaSoThue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(cbb_Nam, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel8))))
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(26, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void cbb_NamActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbb_NamActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_cbb_NamActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(DanhSachHoSo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(DanhSachHoSo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(DanhSachHoSo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(DanhSachHoSo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new DanhSachHoSo().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bt_NgayLe;
    private javax.swing.JButton bt_ThemHoSo_TrucTiep;
    private javax.swing.JButton bt_ThemHoSo_TuFile;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.ButtonGroup buttonGroup2;
    private javax.swing.JComboBox cbb_Nam;
    private javax.swing.JComboBox cbb_Quy;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JPanel jPBaoCao;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lbl_ChamTienDo;
    private javax.swing.JLabel lbl_ChuaAnDinhNgayThucHien;
    private javax.swing.JLabel lbl_ChuaXuLy;
    private javax.swing.JLabel lbl_DaXuLy;
    private javax.swing.JLabel lbl_Lich_Gio;
    private javax.swing.JLabel lbl_Lich_NgayThangNam;
    private javax.swing.JLabel lbl_Lich_Thu;
    private javax.swing.JLabel lbl_TatCa;
    private javax.swing.JRadioButton rbt_ChamTienDo;
    private javax.swing.JRadioButton rbt_ChuaAnDinhNgayThucHien;
    private javax.swing.JRadioButton rbt_ChuaXuLy;
    private javax.swing.JRadioButton rbt_DaXuLy;
    private javax.swing.JRadioButton rbt_TatCa;
    private javax.swing.JTable tbl_DanhSachHoSo;
    private javax.swing.JTextField txt_SearchMaSoThue;
    // End of variables declaration//GEN-END:variables

    private void initTable() {
        DefaultTableModel model = new DefaultTableModel();
        
        model.setColumnIdentifiers(new String [] {
                "STT2", "MST2", "Doanh Nghiệp2", "Địa Chỉ2", "Cán Bộ Giữ Ngân Sách", "Trưởng Đoàn", "Trình Trạng", "Ngày", "Cảnh báo", "Hoàn Thành"
            });
        tbl_DanhSachHoSo.setModel(model);
        //model.addRow(new Object[]{1,"MBA123","MBA123","MBA123","MBA123","MBA123","MBA123","MBA123","MBA123","MBA123"});
        try{
        Conn.connect();
         Statement stat = Conn.conn.createStatement();
        
        ResultSet rs = stat.executeQuery("select h.MaSoThue,h.CongChucGiuNS,h.TruongDoan,h.DateCoQuanThue_LT,h.DateCoQuanThue,d.TenDoanhNghiep,d.DiaChi from HoSo h, DoanhNghiep d where h.MaSoThue = d.MaSoThue ;");
        int i = 1;
        while (rs.next()) {
            String MST = rs.getString("MaSoThue");
            String CongChuc = rs.getString("CongChucGiuNS");
            String TruongDoan = rs.getString("TruongDoan");
            String CQT_LT = rs.getString("DateCoQuanThue_LT");
            String CQT = rs.getString("DateCoQuanThue");
            String TinhTrang = null;
            String TenDN = rs.getString("TenDoanhNghiep");
            String DiaChi = rs.getString("DiaChi");
            
            
            
            
            if(CQT_LT !=null){
                if(CQT ==null){
                    TinhTrang = "Cho thuc hien o CQ Thue";
                }else{
                    TinhTrang = "Cho Giai Trinh Lan 1";
                }
            }else{
                    TinhTrang = "Chua an dinh thuc hien o CQ Thue";
            }
            model.addRow(new Object[]{i,MST,TenDN,DiaChi,CongChuc,TruongDoan,TinhTrang,"","DungTienDo",null});
            i++;
            
        }
        
        rs.close();
        Conn.disconnect();
        } catch (SQLException ex) {
            Logger.getLogger(Tax.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
